home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / After Effects 3.1 SDK Mac / Examples / Header Files / AE_Macros.h < prev    next >
Text File  |  1996-11-06  |  786b  |  43 lines

  1. /**
  2.     AEFX_Macros.c
  3.     
  4.     Part of the Adobe After Effects 3.1 SDK    
  5.     Copyright (c)1993-96, Adobe Systems Inc, All Rights Reserved.
  6.  
  7.     Revision History
  8.         1.0, created by dmw
  9. **/
  10.  
  11. #ifndef _H_AE_MACROS
  12. #define _H_AE_MACROS
  13.  
  14. #include <A4Stuff.h>
  15.  
  16. // this only works if the mw headers use __powerc
  17. #ifndef            __powerc
  18.  
  19. #define         AEFX_DECLARE_A4            EnterCodeResource();
  20. #define            AEFX_SET_A4                
  21. #define            AEFX_RESTORE_A4            ExitCodeResource();
  22.  
  23. #else
  24.  
  25. #define         AEFX_DECLARE_A4
  26. #define            AEFX_SET_A4    
  27. #define            AEFX_RESTORE_A4
  28.  
  29. #endif
  30.  
  31. #define            AEFX_CLR_STRUCT(STRUCT)                            \
  32.     do {                                                        \
  33.         long _t = sizeof(STRUCT);                                \
  34.         char *_p = (char*)&(STRUCT);                            \
  35.         while (_t--) {                                            \
  36.             *_p++ = 0;                                            \
  37.         }                                                        \
  38.     } while (0);                                        
  39.  
  40.  
  41.  
  42. #endif        // _H_AX_MACROS
  43.